﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WSTester.DataModel;

namespace WSTester.AdminPanel
{
    public partial class Tests : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (WSTesterEntities wsEntries = new WSTesterEntities())
            {
                Test[] tests = wsEntries.Test.ToArray();
                this.GridTest.DataSource = tests;
                this.GridTest.DataKeyNames = new string[] { "Id" };
            }
        }
    }
}